home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_13_05 / allison / person.h < prev    next >
C/C++ Source or Header  |  1995-03-12  |  534b  |  24 lines

  1. LISTING 16 - Defines a Person data type
  2. // person.h
  3. #include <cstring.h>
  4. #include "date5.h"
  5. #include "bool.h"
  6.  
  7. class ostream;
  8.  
  9. class Person
  10. {
  11.     friend ostream & operator<<(ostream &, const Person &);
  12.  
  13. public:
  14.     Person(const string& = "", const string& = "",
  15.            const Date& = Date(0,0,0), const string& = "");
  16.     bool operator==(const Person &) const;
  17.  
  18. private:
  19.     string last;         // 3 string subobjects
  20.     string first;        
  21.     Date birth;          // Date subobject
  22.     string ssn;
  23. };
  24.